git clone --depth 1 https://git.savannah.gnu.org/git/emacs.git
cd emacs
./autogen.sh;
./configure --prefix=/usr/local --with-x-toolkit=gtk3 --with-xwidgets
